import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/cms/JcjcPlanYearss/listPage',
    method: 'get',
    params: query
  })
}

export function addOrEditData(query) {
  return request({
    url: '/cms/JcjcPlanYearss/saveOrUpdate',
    method: 'POST',
    data: query
  })
}

/* export function addOrEditData(query) {
  return request({
    url: '/cms/JcjcPlanYear/saveOrUpdate',
    method: 'GET',
    params: {parameterStr: JSON.stringify(query)}
  })
}*/

// 删除某一列信息
export function deleteData(id) {
  return request({
    url: `/cms/JcjcPlanYearss/${id}`,
    method: 'delete'
  })
}
